{%extends "base.html"%}
{%block body%}
<div class="contingut">
<h2>Create or Edit Coperativa</h2>

<form action="{%url coperativa.edit_coperativa cope.key.id%}" method="post">
<table>
{{form}}
<tr><td><input type="submit" value="Create or Edit Coperativa"></td></tr>
</table>
</form>

<ul>
	{%for producte in productes%}
	<li>
		<a href="{%url productes.edit_product cope.key.id,producte.key.id%}">{{producte.name}}</a>
    </li>
	{%endfor%}
</ul>
<a href="{%url productes.new_product cope.key.id%}">Nou Producte</a>
</div>

{%endblock%}
